'''
工作台首页
 '''
from selenium.webdriver.common.by import By
from page.base_page import BasePage

class Gongzuotaitz(BasePage):
    url = 'http://192.168.1.25/crm/index.php?m=announcement&a=index'

    # 添加公告
    tianjia_locator = (By.CSS_SELECTOR, 'body > div.container > div.row > div:nth-child(1) > div.pull-right > a')

    def tianjiaguanggaoyemian(self):
        self.driver.find_element(*self.tianjia_locator).click()
